﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BKH.BLL
{
    class RelationshipBUO:IBUO<tbl_RelationShip>
    {
        HospitalDBDataContext context = new HospitalDBDataContext();
        public bool Insert(tbl_RelationShip obj)
        {
            throw new NotImplementedException();
        }

        public bool Delete(int id)
        {
            throw new NotImplementedException();
        }

        public bool Delete(tbl_RelationShip obj)
        {
            throw new NotImplementedException();
        }

        public List<tbl_RelationShip> GetAll()
        {
            return context.tbl_RelationShips.ToList<tbl_RelationShip>();
        }

        public tbl_RelationShip GetSingle(int id)
        {
            return context.tbl_RelationShips.Where(n => n.RelationShipID == id).ToList<tbl_RelationShip>().FirstOrDefault();
        }

        public bool Update(int id, tbl_RelationShip obj)
        {
            throw new NotImplementedException();
        }
    }
}
